package com.ktgj.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.KtserviceViphallMealMapper;
import com.ktgj.service.domain.KtserviceViphallMeal;
import com.ktgj.service.service.IKtserviceViphallMealService;

/**
 * 贵宾厅套餐Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-30
 */
@Service
public class KtserviceViphallMealServiceImpl implements IKtserviceViphallMealService 
{
    @Autowired
    private KtserviceViphallMealMapper ktserviceViphallMealMapper;

    /**
     * 查询贵宾厅套餐
     * 
     * @param viphallMealId 贵宾厅套餐ID
     * @return 贵宾厅套餐
     */
    @Override
    public KtserviceViphallMeal selectKtserviceViphallMealById(Long viphallMealId)
    {
        return ktserviceViphallMealMapper.selectKtserviceViphallMealById(viphallMealId);
    }

    /**
     * 查询贵宾厅套餐列表
     * 
     * @param ktserviceViphallMeal 贵宾厅套餐
     * @return 贵宾厅套餐
     */
    @Override
    public List<KtserviceViphallMeal> selectKtserviceViphallMealList(KtserviceViphallMeal ktserviceViphallMeal)
    {
        return ktserviceViphallMealMapper.selectKtserviceViphallMealList(ktserviceViphallMeal);
    }

    /**
     * 新增贵宾厅套餐
     * 
     * @param ktserviceViphallMeal 贵宾厅套餐
     * @return 结果
     */
    @Override
    public int insertKtserviceViphallMeal(KtserviceViphallMeal ktserviceViphallMeal)
    {
        return ktserviceViphallMealMapper.insertKtserviceViphallMeal(ktserviceViphallMeal);
    }

    /**
     * 修改贵宾厅套餐
     * 
     * @param ktserviceViphallMeal 贵宾厅套餐
     * @return 结果
     */
    @Override
    public int updateKtserviceViphallMeal(KtserviceViphallMeal ktserviceViphallMeal)
    {
        return ktserviceViphallMealMapper.updateKtserviceViphallMeal(ktserviceViphallMeal);
    }

    /**
     * 批量删除贵宾厅套餐
     * 
     * @param viphallMealIds 需要删除的贵宾厅套餐ID
     * @return 结果
     */
    @Override
    public int deleteKtserviceViphallMealByIds(Long[] viphallMealIds)
    {
        return ktserviceViphallMealMapper.deleteKtserviceViphallMealByIds(viphallMealIds);
    }

    /**
     * 删除贵宾厅套餐信息
     * 
     * @param viphallMealId 贵宾厅套餐ID
     * @return 结果
     */
    @Override
    public int deleteKtserviceViphallMealById(Long viphallMealId)
    {
        return ktserviceViphallMealMapper.deleteKtserviceViphallMealById(viphallMealId);
    }
}
